/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * ES Dictionary API
 * es自定义词典上传、删除、查询接口
 *
 * OpenAPI spec version: v1
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;
using JDCloudSDK.Core.Service;

using JDCloudSDK.Core.Annotation;
using Newtonsoft.Json;

namespace  JDCloudSDK.Es.Apis
{

    /// <summary>
    ///  上传本地字典文件并加载到es，支持主词库和停词库，主词库对象、停词库对象不可同时为空，也不可选择相同文件。
    /// </summary>
    public class UploadDictRequest : JdcloudRequest
    {
        ///<summary>
        /// 字典类型，包含ext_dict主词库和ext_stopwords停词库两种，主词库最大可支持50M文件上传，停词库最大可支持20M文件上传。
        ///Required:true
        ///</summary>
        [Required]
        public   string DictType{ get; set; }
        ///<summary>
        /// 字典文件名，最长100个字符
        ///Required:true
        ///</summary>
        [Required]
        public   string FileName{ get; set; }
        ///<summary>
        /// 字典文件，该字段是将字典文件内容进行base64 encode后的值
        ///Required:true
        ///</summary>
        [Required]
        public   string DictFile{ get; set; }
        ///<summary>
        /// 字典文件MD5值，用于校验文件传输的完整性
        ///Required:true
        ///</summary>
        [Required]
        public   string Md5str{ get; set; }
        ///<summary>
        /// regionId
        ///Required:true
        ///</summary>
        [Required]
        [JsonProperty("regionId")]
        public   string RegionIdValue{ get; set; }
        ///<summary>
        /// 实例ID
        ///Required:true
        ///</summary>
        [Required]
        public   string InstanceId{ get; set; }
    }
}